package com.link2room.rodimus.feign.trailbreaker;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.trailbreaker.dto.param.PrePayParamDto;
import com.link2room.trailbreaker.dto.result.PrepayResDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author sqj88
 * @date 2017/11/7 22:27
 */
@FeignClient("${spring.gateway.name}/${feign.trailbreaker}")
public interface PrepayFeignService {
    /**
     * 支付预下单
     * @param payParamDto
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.POST,value = "/in/PrepayCode",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<PrepayResDto> unifiedorderSign(@RequestBody PrePayParamDto payParamDto) throws Exception;
}
